package edu.zut.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.List;

/**
 * ORM框架中，实体类和表是映射关系
 * 默认要求表中的字段和类中的属性保持一致
 * @Data: 生成get、set、toString
 * @NoArgsConstructor :生成无参构造
 * @AllArgsConstructor :生成带有所有属性的构造
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo {

    private Integer id;
    private String name;
    private String psw;
    private String sex;
    private LocalDate birth;
    private String address;
    private String city;
    private String mail;
    private String fullName;
    private String zym;

    //一对多表示用户订单信息
    private List<Orders> ordersList;

}
